package com.tong.hao.ac.db.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 账单记录表
 * </p>
 *
 * @author 彤彤
 * @since 2020-04-22
 *
 * 已过时，代替品为
 * @see com.tong.hao.ac.db.entity.AcBillFlow
 */
@Deprecated
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AcBill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 内部主键
     */
    @TableId("inner_key")
    private String innerKey;

    /**
     * 用户编号(取值为ac_user.inner_num)
     */
    @TableField("user_key")
    private String userKey;

    /**
     * 账单日期
     */
    @TableField("ac_date")
    private Date acDate;

    /**
     * 账单一级类型(参见ac_class的first_bill)
     */
    @TableField("ac_first_class")
    private String acFirstClass;

    /**
     * 账单二级类型(参见ac_class的second_bill)
     */
    @TableField("ac_second_class")
    private String acSecondClass;

    /**
     * 账单金额(最小单位是分)
     */
    @TableField("ac_amount")
    private BigDecimal acAmount;

}
